package com.world.cat.model.sys;

import com.world.common.generate.auto.Action;
import com.world.common.generate.auto.QField;
import com.world.common.generate.auto.QFieldQueryType;
import com.world.common.generate.auto.QFieldType;
import com.world.common.model.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by gang on 2018/2/4.
 */
@Entity
@Table(name = "sys_api_detail")
public class ApiDetail extends BaseEntity {
    @QField(name = "url", actions = {Action.edit, Action.query, Action.show}, queryType = QFieldQueryType.like)
    @Column(name = "url", unique = true)
    private String url;//

    @QField(name = "请求示例", type = QFieldType.textarea, actions = {Action.edit, Action.show}, queryType = QFieldQueryType.like)
    @Column(name = "req_example", columnDefinition = "text")
    private String reqExample;//

    @QField(name = "返回示例", type = QFieldType.textarea, actions = {Action.edit, Action.show}, queryType = QFieldQueryType.like)
    @Column(name = "res_example", columnDefinition = "text")
    private String resExample;//


    //==================== set get 构造方法 ====================
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getReqExample() {
        return reqExample;
    }

    public void setReqExample(String reqExample) {
        this.reqExample = reqExample;
    }

    public String getResExample() {
        return resExample;
    }

    public void setResExample(String resExample) {
        this.resExample = resExample;
    }
}
